package javango.http;

import java.io.IOException;
import java.io.Writer;

public class SimpleHttpResponse extends CharacterHttpResponse {

	private String content;
	
	public SimpleHttpResponse(String content) {
		this.content = content;
	}
		
	@Override
	public void renderToWriter(Writer w) throws HttpException {
		try {
			w.write(content);
		} catch (IOException e) {
			throw new Http500(e);
		}
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}
